﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Administrator_GioiThieu : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(Page.IsPostBack)
        if (!(this.FormView1.PageCount > 0))
        {
            this.FormView1.DefaultMode = FormViewMode.Insert;
        }
        else
        {
            this.FormView1.DefaultMode = FormViewMode.ReadOnly;
        }
    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        this.FormView1.DefaultMode = FormViewMode.Insert;
    }
    protected void InsertCancelButton_Click(object sender, EventArgs e)
    {
        this.FormView1.DefaultMode = FormViewMode.ReadOnly;
    }
    protected void InsertButton_Click(object sender, EventArgs e)
    {
        this.FormView1.DefaultMode = FormViewMode.ReadOnly;
    }
}